package org.chen.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.chen.domain.Article;

import java.time.LocalDateTime;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CrawlerResult {
    
    private String taskId;
    
    private String source;
    
    private Integer total;
    
    private Integer success;
    
    private Integer failed;
    
    private List<Article> articles;
    
    private List<String> errors;
    
    private LocalDateTime startTime;
    
    private LocalDateTime endTime;
    
    private Long duration;
}